package cn.myfirefly.utils;

import java.util.List;
import java.util.Map;

public class CollectionUtil {

	@SuppressWarnings("rawtypes")
	public static boolean isEmpty(List list) {
		if (list == null || list.isEmpty()) {
			return true;
		}
		return false;
	}
	
	@SuppressWarnings("rawtypes")
	public static boolean isNotEmpty(List list) {
		return !isEmpty(list);
	}
	
	@SuppressWarnings("rawtypes")
	public static boolean isEmpty(Map map) {
		if (map == null || map.isEmpty()) {
			return true;
		}
		return false;
	}
	
	@SuppressWarnings("rawtypes")
	public static boolean isNotEmpty(Map map) {
		return !isEmpty(map);
	}
}
